/**
 * Created by jianglinjie on Thu Sep 21 2017
 * @flow
 */
'use strict';

export const COMMON_ERROR: string = 'COMMON_ERROR';
export const TOKEN_EXPIRE: string = 'TOKEN_EXPIRE'; //token过期
export const TOKEN_INVALID: string = 'TOKEN_INVALID'; //token非法
export const REQUIRE_TOKEN: string = 'REQUIRE_TOKEN'; //缺少token
export const REQUIRE_AUTHORIZATION_HEADER: string = 'REQUIRE_AUTHORIZATION_HEADER'; //缺少Token
export const UNSUPPORT_REGISTER_TYPE: string = 'UNSUPPORT_REGISTER_TYPE'; //不支持的注册类型
export const REQUIRE_USERNAME: string = 'REQUIRE_USERNAME'; //缺少用户名
export const REQUIRE_PWD: string = 'REQUIRE_PWD'; //缺少密码
export const PWD_ERROR: string = 'PWD_ERROR'; //密码错误
export const USER_HAS_REGISTER: string = 'USER_HAS_REGISTER'; //用户已注册
export const UNSUPPORT_LOGIN_TYPE: string = 'UNSUPPORT_LOGIN_TYPE'; //不支持的登录类型
export const USER_NOT_EXIST: string = 'USER_NOT_EXIST'; //用户不存在
export const PHONE_INVALID: string = 'PHONE_INVALID'; //手机不合法
export const CAPTCHA_BUSINESS_INVALID: string = 'CAPTCHA_BUSINESS_INVALID'; //验证码业务类型非法
export const PHONE_HAS_REGISTER: string = 'PHONE_HAS_REGISTER'; //手机已注册
export const CAPTCHA_INVALID: string = 'CAPTCHA_INVALID'; //验证码非法
export const REQUIRE_CAPTCHA: string = 'REQUIRE_USERNAME'; //缺少验证码
export const PHONE_NOT_EXIST: string = 'PHONE_NOT_EXIST'; //手机号不存在
export const USER_ALREADY_LOGOUT: string = 'USER_ALREADY_LOGOUT'; //用户已注销
export const PASSWORD_INVALID: string = 'PASSWORD_INVALID'; //密码非法
export const REQUIRE_UID: string = 'REQUIRE_UID'; //缺少用户标识
export const PASSWORD_NOT_CHANGE: string = 'PASSWORD_NOT_CHANGE'; //密码相同
export const ACCESS_DENY: string = 'ACCESS_DENY'; //拒绝访问
export const PHONE_HAS_BIND: string = 'PHONE_HAS_BIND'; //手机绑定
export const PHONE_BIND_FAIL: string = 'PHONE_BIND_FAIL'; //手机绑定失败
export const USER_AVATAR_INVALID: string = 'USER_AVATAR_INVALID'; //头像非法
export const USER_GENDER_INVALID: string = 'USER_GENDER_INVALID'; //性别非法
export const USER_NICKNAME_INVALID: string = 'USER_NICKNAME_INVALID'; //昵称非法
export const USER_NAME_INVALID: string = 'USER_NAME_INVALID'; //用户名非法
export const REQUIRE_PARAMETER: string = 'REQUIRE_PARAMETER'; //缺少参数
export const PHONE_NOT_UPDATE: string = 'PHONE_NOT_UPDATE'; //手机号未改变
export const REQUIRE_PHONE: string = 'REQUIRE_PHONE'; //缺少手机号
export const REQUIRE_ACCOUNT: string = 'REQUIRE_ACCOUNT'; //缺少账户名
export const REQUIRE_PATH: string = 'REQUIRE_PATH'; //缺少路径
export const REQUIRE_MIME_TYPE: string = 'REQUIRE_MIME_TYPE'; //缺少类型
export const UPLOAD_FAIL: string = 'UPLOAD_FAIL'; //上传失败
export const REQUIRE_FID: string = 'REQUIRE_FID'; //缺少文件id
export const FILE_NOT_FOUNT: string = 'FILE_NOT_FOUNT'; //文件不存在
export const FILE_URI_NOT_SUPPORT: string = 'FILE_URI_NOT_SUPPORT'; //文件URI不支持
export const REQUIRE_FILE_URI: string = 'REQUIRE_FILE_URI'; //缺少文件URI
export const RES_BODY_INVALID: string = 'RES_BODY_INVALID'; //服务端响应的格式不合法
export const CLIENT_NOT_LOGIN_IN: string= 'CLIENT_NOT_LOGIN_IN'; //客户端未登录
export const REQUIRE_ACCOUNT_OR_PWD = 'REQUIRE_ACCOUNT_OR_PWD';//缺少账号或者密码